<?php
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\User;

Route::prefix('user')->middleware(['api.log', 'api.cors', 'api.request'])->group(function () {
    // 登录
    Route::post('getWxOpenid', [User\LoginController::class, 'getWxOpenid'])->name('获取微信openid');

    Route::post('wxLogin', [User\LoginController::class, 'wxLogin'])->name('微信登录');

    Route::as('首页 - ')->group(function () {
        Route::post('index', [User\IndexController::class, 'index']);
    });

    Route::as('导航');

    Route::as('会员中心 - ');
});
